[Help] Webkit can't play videos altough gstreamer is installed.
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Help] Webkit can't play videos altough gstreamer is installed.
I am using a webkit based browser, and I have the following installed:
-gstreamer
-gst-libav
-gst-plugins-base
-gst-plugins-bad
-gst-plugins-good
-gst-plugins-ugly
When I go for example to youtube, and try to play a video I get white screen and a loading circle, after a few seconds I get a screen which tells me that "an error occured".
The strange thing is when I do the same with gnome Web which is also webkit based, everythings works fine.
What should I do to make webkit play videos?
thanks for the help!
And pray tell what is the identity of this browser?
Why do you guard its secret?
Please start it in a terminal, make it misbehave, and show us what it spits out.
And pray tell what is the identity of this browser?
Why do you guard its secret?
I use a browser called Luakit.
However I am also interseted in embeding a webkit browser in some of my projects so I am asking a general question about webkit.
Quote:
Please start it in a terminal, make it misbehave, and show us what it spits out.
I tried to open a terminal and run Luakit from there but it doesn't report anything when it misbehaves.
OK.
What version, on what distro, is the distro up-to-date.
AFAIK luakit hasn't seen any development at all for a few years now. The version in debian stretch is from 2012, they really should just chuck it out
Try surf (although that hasn't seen much development recently either).
OK.
What version, on what distro, is the distro up-to-date.
AFAIK luakit hasn't seen any development at all for a few years now. The version in debian stretch is from 2012, they really should just chuck it out
Try surf (although that hasn't seen much development recently either).
I am using both Arch and Debian 9, I compile luakit from source, using webkit2gtk 2.24.2-1, so I am using its latest version.
I know for a fact that luakit can play videos because I once got it working on my last computer.
I tried surf and it also doesn't solve my problem because it is also based on webkit.
As I understand the problem, it doesn't concern which browser I am using because all browsers(which aren't firefox) use the same engine webkit, so I either I am missing a codecs or a decoding package in gstreamer or I have installed webkit differently than the last time I got it working.
If you got video decoding working on surf thats awesome I would like to hear how you achieved it because than I can achieve the same with any webkit based browser.
If you need further information about the distro or package version I will be happy to provide it to you.
I am using both Arch and Debian 9, I compile luakit from source, using webkit2gtk 2.24.2-1, so I am using its latest version.
I know for a fact that luakit can play videos because I once got it working on my last computer.
I tried surf and it also doesn't solve my problem because it is also based on webkit.
As I understand the problem, it doesn't concern which browser I am using because all browsers(which aren't firefox) use the same engine webkit, so I either I am missing a codecs or a decoding package in gstreamer or I have installed webkit differently than the last time I got it working.
If you got video decoding working on surf thats awesome I would like to hear how you achieved it because than I can achieve the same with any webkit based browser.
If you need further information about the distro or package version I will be happy to provide it to you.
That is indeed a sufficiently new version of that particular webkit incarnation. But just FYI, there are several.
It also appears that I was wrong: luakit is very much alive; only the version in debian stable is stone old.
I am now installing luakit from the AUR on my arch machine. Did you also do that?
All optional dependencies are installed, both for webkit2gtk and luakit.
Code:
pacman -Qii luakit
pacman -Qii webkit2gtk
Youtube videos play alright:
Code:
$ luakit
[ 0.022016] I [core/luah]: Loading rc: /etc/xdg/luakit/rc.lua
[ 0.052220] I [lua/adblock]: found 0 filter lists
[ 0.052246] I [lua/adblock]: subscriptions file '/home/ondoho/.local/share/luakit/adblock/subscriptions' doesn't exist
[ 0.062817] I [lua/styles]: found 0 user stylesheets
[ 0.063900] I [core/web_context]: Web process count: 4
[ 3.830415] I [lua/webview]: Requested link: https://luakit.github.io/ (text/html)
[ 16.010819] I [lua/webview]: Requested link: https://www.youtube.com/ (text/html)
[ 39.595417] I [lua/webview]: Requested link: https://www.youtube.com/ad_companion?adformat=15_2_1&render=video_wall_companion&content=NtzftGb0EcM&ad_video_id=ceFhW_dgNCw&polymer=1 (text/html)
That is indeed a sufficiently new version of that particular webkit incarnation. But just FYI, there are several.
It also appears that I was wrong: luakit is very much alive; only the version in debian stable is stone old.
I am now installing luakit from the AUR on my arch machine. Did you also do that?
All optional dependencies are installed, both for webkit2gtk and luakit.
Code:
pacman -Qii luakit
pacman -Qii webkit2gtk
Youtube videos play alright:
Code:
$ luakit
[ 0.022016] I [core/luah]: Loading rc: /etc/xdg/luakit/rc.lua
[ 0.052220] I [lua/adblock]: found 0 filter lists
[ 0.052246] I [lua/adblock]: subscriptions file '/home/ondoho/.local/share/luakit/adblock/subscriptions' doesn't exist
[ 0.062817] I [lua/styles]: found 0 user stylesheets
[ 0.063900] I [core/web_context]: Web process count: 4
[ 3.830415] I [lua/webview]: Requested link: https://luakit.github.io/ (text/html)
[ 16.010819] I [lua/webview]: Requested link: https://www.youtube.com/ (text/html)
[ 39.595417] I [lua/webview]: Requested link: https://www.youtube.com/ad_companion?adformat=15_2_1&render=video_wall_companion&content=NtzftGb0EcM&ad_video_id=ceFhW_dgNCw&polymer=1 (text/html)
Yes I also installed stock luakit from the AUR using luakit-git.
[oren@vaio ~]$ pacman -Qii webkit2gtk
Name : webkit2gtk
Version : 2.24.2-1
Description : GTK+ Web content engine library
Architecture : x86_64
URL : https://webkitgtk.org/
Licenses : custom
Groups : None
Provides : None
Depends On : libxt libxslt enchant gst-plugins-base-libs libsecret libwebp openjpeg2 harfbuzz-icu gtk3
libnotify hyphen woff2
Optional Deps : geoclue: Geolocation support [installed]
gst-plugins-good: media decoding [installed]
gst-plugins-bad: media decoding [installed]
gst-libav: nonfree media decoding [installed]
Required By : devhelp epiphany luakit-git zenity
Optional For : libproxy
Conflicts With : None
Replaces : None
Installed Size : 80.07 MiB
Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date : Mon 20 May 2019 04:22:06 AM IDT
Install Date : Fri 21 Jun 2019 09:54:19 PM IDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Backup Files :
(none)
[oren@vaio ~]$ pacman -Qii luakit
Name : luakit-git
Version : 1:2.1.r20.g6f809182-1
Description : Luakit: now updated for WebKit 2
Architecture : x86_64
URL : https://luakit.github.io
Licenses : GPL3
Groups : None
Provides : luakit
Depends On : webkit2gtk lua51-filesystem
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : luakit
Replaces : None
Installed Size : 3.33 MiB
Packager : Unknown Packager
Build Date : Fri 28 Jun 2019 11:01:08 AM IDT
Install Date : Fri 28 Jun 2019 11:05:16 AM IDT
Install Reason : Explicitly installed
Install Script : No
Validated By : None
Backup Files :
UNMODIFIED /etc/xdg/luakit/rc.lua
UNMODIFIED /etc/xdg/luakit/theme.lua
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.